package com.lipaluma.examples.annotation.onetomany;

import java.util.Date;
import java.util.List;

import com.lipaluma.annotations.mapping.MapColumn;
import com.lipaluma.annotations.merge.Id;
import com.lipaluma.annotations.merge.OneToMany;

public class Invoice {
	@Id
	@MapColumn(columnName="INVOICE_ID")
	private Long id;

	@MapColumn(columnName="ECHEANCE_DATE")
	private Date echeance;
	
	@OneToMany
	private List<Order> orders;

	public Long getId() {
		return id;
	}
	public Date getEcheance() {
		return echeance;
	}
	public List<Order> getOrders() {
		return orders;
	}
}
